package com.ybkj.daijia.server.dockingsupervise.zhuanche;

import java.io.Serializable;
import java.util.Date;

public class SjxxMessage implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String driverIdCode;
    private String completeNum;
    private String peccancyNum;
    private String creditLevel;
    private Date checkDate;
    private String checkAgency;
    private String breakReason;
    private String complainNum;
    private String appKey;
    private Date created;
    private Date updated;
    private String address;
    private String licenseId;
    private String type = Type.MOREQ_SJXX;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLicenseId() {
        return licenseId;
    }

    public void setLicenseId(String licenseId) {
        this.licenseId = licenseId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDriverIdCode() {
        return driverIdCode;
    }

    public void setDriverIdCode(String driverIdCode) {
        this.driverIdCode = driverIdCode == null ? null : driverIdCode.trim();
    }

    public String getCompleteNum() {
        return completeNum;
    }

    public void setCompleteNum(String completeNum) {
        this.completeNum = completeNum == null ? null : completeNum.trim();
    }

    public String getPeccancyNum() {
        return peccancyNum;
    }

    public void setPeccancyNum(String peccancyNum) {
        this.peccancyNum = peccancyNum == null ? null : peccancyNum.trim();
    }

    public String getCreditLevel() {
        return creditLevel;
    }

    public void setCreditLevel(String creditLevel) {
        this.creditLevel = creditLevel == null ? null : creditLevel.trim();
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public String getCheckAgency() {
        return checkAgency;
    }

    public void setCheckAgency(String checkAgency) {
        this.checkAgency = checkAgency == null ? null : checkAgency.trim();
    }

    public String getBreakReason() {
        return breakReason;
    }

    public void setBreakReason(String breakReason) {
        this.breakReason = breakReason == null ? null : breakReason.trim();
    }

    public String getComplainNum() {
        return complainNum;
    }

    public void setComplainNum(String complainNum) {
        this.complainNum = complainNum == null ? null : complainNum.trim();
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SjxxMessage other = (SjxxMessage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDriverIdCode() == null ? other.getDriverIdCode() == null
            : this.getDriverIdCode().equals(other.getDriverIdCode()))
            && (this.getCompleteNum() == null ? other.getCompleteNum() == null
            : this.getCompleteNum().equals(other.getCompleteNum()))
            && (this.getPeccancyNum() == null ? other.getPeccancyNum() == null
            : this.getPeccancyNum().equals(other.getPeccancyNum()))
            && (this.getCreditLevel() == null ? other.getCreditLevel() == null
            : this.getCreditLevel().equals(other.getCreditLevel()))
            && (this.getCheckDate() == null ? other.getCheckDate() == null
            : this.getCheckDate().equals(other.getCheckDate()))
            && (this.getCheckAgency() == null ? other.getCheckAgency() == null
            : this.getCheckAgency().equals(other.getCheckAgency()))
            && (this.getBreakReason() == null ? other.getBreakReason() == null
            : this.getBreakReason().equals(other.getBreakReason()))
            && (this.getComplainNum() == null ? other.getComplainNum() == null
            : this.getComplainNum().equals(other.getComplainNum()))
            && (this.getAppKey() == null ? other.getAppKey() == null
            : this.getAppKey().equals(other.getAppKey()))
            && (this.getCreated() == null ? other.getCreated() == null
            : this.getCreated().equals(other.getCreated()))
            && (this.getUpdated() == null ? other.getUpdated() == null
            : this.getUpdated().equals(other.getUpdated()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDriverIdCode() == null) ? 0 : getDriverIdCode().hashCode());
        result = prime * result + ((getCompleteNum() == null) ? 0 : getCompleteNum().hashCode());
        result = prime * result + ((getPeccancyNum() == null) ? 0 : getPeccancyNum().hashCode());
        result = prime * result + ((getCreditLevel() == null) ? 0 : getCreditLevel().hashCode());
        result = prime * result + ((getCheckDate() == null) ? 0 : getCheckDate().hashCode());
        result = prime * result + ((getCheckAgency() == null) ? 0 : getCheckAgency().hashCode());
        result = prime * result + ((getBreakReason() == null) ? 0 : getBreakReason().hashCode());
        result = prime * result + ((getComplainNum() == null) ? 0 : getComplainNum().hashCode());
        result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
        result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", driverIdCode=").append(driverIdCode);
        sb.append(", completeNum=").append(completeNum);
        sb.append(", peccancyNum=").append(peccancyNum);
        sb.append(", creditLevel=").append(creditLevel);
        sb.append(", checkDate=").append(checkDate);
        sb.append(", checkAgency=").append(checkAgency);
        sb.append(", breakReason=").append(breakReason);
        sb.append(", complainNum=").append(complainNum);
        sb.append(", appKey=").append(appKey);
        sb.append(", created=").append(created);
        sb.append(", updated=").append(updated);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
